package org.speed.jdk;

import org.speed.jdk.User.UserBuilder;
import org.springframework.util.Assert;
import org.springframework.util.StopWatch;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws InterruptedException
    {
    	
    	
    	
    	User user = new UserBuilder().name("111").password("2222").build();
		//System.out.println(user.getName());
		
    	
    	
    	StopWatch watch = new StopWatch("userLogin");
    	watch.start();
		Assert.notNull(user, "user is Null");
		
		Thread.sleep(1000);
		watch.stop();
		
		System.out.println(watch.shortSummary());
		
		
		
    	
    }
    
}
